package com.demo.api.user.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * TEST_LIMIT
 * @author 
 */
public class TestLimit implements Serializable {
    private String idno;

    private BigDecimal limitAmount;

    private Date dt;

    private static final long serialVersionUID = 1L;

    public String getIdno() {
        return idno;
    }

    public void setIdno(String idno) {
        this.idno = idno;
    }

    public BigDecimal getLimitAmount() {
        return limitAmount;
    }

    public void setLimitAmount(BigDecimal limitAmount) {
        this.limitAmount = limitAmount;
    }

    public Date getDt() {
        return dt;
    }

    public void setDt(Date dt) {
        this.dt = dt;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TestLimit other = (TestLimit) that;
        return (this.getIdno() == null ? other.getIdno() == null : this.getIdno().equals(other.getIdno()))
            && (this.getLimitAmount() == null ? other.getLimitAmount() == null : this.getLimitAmount().equals(other.getLimitAmount()))
            && (this.getDt() == null ? other.getDt() == null : this.getDt().equals(other.getDt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getIdno() == null) ? 0 : getIdno().hashCode());
        result = prime * result + ((getLimitAmount() == null) ? 0 : getLimitAmount().hashCode());
        result = prime * result + ((getDt() == null) ? 0 : getDt().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", idno=").append(idno);
        sb.append(", limitAmount=").append(limitAmount);
        sb.append(", dt=").append(dt);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}